d8e3e4dda6d90a0307a2ba3459fe112194363ac3,visualvm/jmx/src/com/sun/tools/visualvm/jmx/impl/JmxModelImpl.java,JmxModelImpl,connect,#Application#ProxyClient#ApplicationRemovedListener#ApplicationAvailabilityListener#,223
Before Change
} catch (SecurityException e) {
LOGGER.log(Level.INFO, "connect", e); // NOI18N
if (proxyClient.hasSSLStubCheck()) {
String conn = application.getStorage().getCustomProperty(DataSourceDescriptor.PROPERTY_NAME);
if (conn == null) conn = application.getStorage().getCustomProperty(ApplicationType.PROPERTY_SUGGESTED_NAME);
if (conn == null) conn = proxyClient.getUrl().toString();
String msg = NbBundle.getMessage(JmxModelImpl.class, "MSG_Insecure_SSL", conn); // NOI18N
After Change
} catch (SecurityException e) {
LOGGER.log(Level.INFO, "connect", e); // NOI18N
if (proxyClient.hasSSLStubCheck()) {
Storage storage = application.getStorage();
String noSSLProp = JmxApplicationProvider.PROPERTY_RETRY_WITHOUT_SSL;
String noSSL = storage.getCustomProperty(noSSLProp);
if (noSSL != null && Boolean.parseBoolean(noSSL)) { // NOI18N
proxyClient.setInsecure();
continue;
} else {
String conn = storage.getCustomProperty(DataSourceDescriptor.PROPERTY_NAME);
if (conn == null) conn = storage.getCustomProperty(ApplicationType.PROPERTY_SUGGESTED_NAME);
if (conn == null) conn = proxyClient.getUrl().toString();
String msg = NbBundle.getMessage(JmxModelImpl.class, "MSG_Insecure_SSL", conn); // NOI18N
String title = NbBundle.getMessage(JmxModelImpl.class, "Title_Insecure_SSL"); // NOI18N
String retry = NbBundle.getMessage(JmxModelImpl.class, "Retry_Insecure_SSL"); // NOI18N
JLabel l = new JLabel(msg);
JCheckBox c = new JCheckBox();
Mnemonics.setLocalizedText(c, retry);
c.setSelected(noSSL == null);
JPanel p = new JPanel(new BorderLayout(0, 20));
p.add(l, BorderLayout.CENTER);
p.add(c, BorderLayout.SOUTH);
NotifyDescriptor dd = new NotifyDescriptor.Confirmation(p, title, NotifyDescriptor.YES_NO_OPTION);
if (DialogDisplayer.getDefault().notify(dd) == NotifyDescriptor.YES_OPTION) {